<!DOCTYPE html>
<html>
<head>
<title>7 Paradigms Template</title>
<script type="text/javascript" src="js/jquery.js"></script>
<!-- <script type="text/javascript" -->
<!-- 	src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="js/bootstrap.js"></script> -->
<!-- <link href="css/bootstrap.css" rel="stylesheet"> -->
</head>
<body>
	<div>
		<?php
		session_start();
		include("header.php");
		$_SESSION['userName'] = "aMarciniak";
		$_SESSION['userPassHash'] = "aMarciniak";
		$userName = $_SESSION['userName'];
		$userPassHash = $_SESSION['userPassHash'];
		?>
	</div>
	<div>
		<?php
		$mainPanel;
		if (isset($_GET['mainPanel']))
		{
			// 				echo 'Getting mainPanel from request: ';
			$mainPanel = $_GET['mainPanel'];
			$_SESSION['mainPanel'] = $mainPanel;
		}
		elseif (isset($_SESSION['mainPanel']))
		{
			// 				echo 'Getting mainPanel from session: ';
			$mainPanel = $_SESSION['mainPanel'];
		}
		else
		{
			echo 'Getting mainPanel from default: ';
			$mainPanel = "upcoming";
		}

		// 			echo $mainPanel;

		switch($mainPanel){
			case "Upcoming Shifts":
				include_once "upcoming.php";
				break;
			case "History":
				include_once "history.php";
				break;
			case "Profile":
				include_once "profile.php";
				break;
			case "Shift Shop":
				include_once "shop.php";
				break;
			case "Employee Manager":
				include_once "empManager.php";
				break;
			case "Add New Shift":
				include_once "addNewShift.php";
				break;
			case "Shift Manager":
				include_once "shiftManager.php";
				break;
			case "Add New Account":
				include_once "employeeAdd.php";
				break;
			case "View Upcoming Per Worker":
				include_once "upcomingPerWorker.php";
				break;
			default:
				include_once "upcoming.php";
				break;
				}
				?>
	</div>
	<div>
		<?php include("footer.php"); ?>
	</div>
</body>
</html>
